package mongodb.spring.battle;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.*;

@Document("runoob2")
public class Runoob {

    @Id
    private int id;
    private Set<BattleInfo> likemsg = new HashSet<>();

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Set<BattleInfo> getLikemsg() {
        return likemsg;
    }

    public void setLikemsg(Set<BattleInfo> likemsg) {
        this.likemsg = likemsg;
    }

    @Override
    public String toString() {
        return "Runoob{" +
                "id=" + id +
                ", likemsg=" + likemsg +
                '}';
    }
}
